<?php

function smarty_modifier_encode($string, $encoding = 'utf-8')
{
    return mb_convert_encoding($string, $encoding, 'auto');
}

